import request from '@/utils/request';

export const userList = (params: any): Promise<{
    obj: any
}> =>
    request({
        method: 'POST',
        url: '/acl/user/list',
        data: params,
    });

const userSave = (params: any): Promise<{
    obj: any
}> =>
    request({
        method: 'POST',
        url: '/acl/user/save',
        data: params,
    });

export const userUpdate = (params: any): Promise<{
    obj: any
}> =>
    request({
        method: 'POST',
        url: '/acl/user/update',
        data: params,
    });


export const rolePermissionList = (params: any): Promise<{
    obj: any
}> =>
    request({
        method: 'POST',
        url: '/acl/role/permission/' + params,
    });
